
package com.itheima.easy.service.impl;

import com.itheima.easy.entity.PayChannel;
import com.itheima.easy.service.PayChannelService;
import com.itheima.easy.mapper.PayChannelMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class PayChannelServiceImpl implements PayChannelService {

    @Resource
    PayChannelMapper payChannelMapper;

    /**
     * 根据企业id和渠道标签查询支付渠道
     * @param enterpriseId 企业id
     * @param channelLabel 渠道标签
     * @return 支付渠道
     */
    @Override
    public PayChannel findByEnterpriseId(Long enterpriseId, String channelLabel) {
        return payChannelMapper.findByEnterpriseId(enterpriseId, channelLabel);
    }
}


